//
// Created by wyh on 2025-06-21 11:45.
//
#include <iostream>
#include "utility/time.h"

using namespace std;
using namespace wyh::utility;

int main(int argc, char **argv)
{
    Time t;

    t.show();

    cout << "sec=" << t.seconds() << ", milliseconds=" << t.milliseconds() << endl;

    cout << t.format("%Y-%m-%d %H:%M:%S %A") << endl;

    Time::sleep(2000);

    Time t2;

    double usec = t2 - t;

    cout << "usec:" << usec / 1000.0 << "ms" << endl;

    return 0;
}